const requireComponent = import.meta.globEager("./modules/*.js");

let piniaStore = {};
 
Object.entries(requireComponent).forEach(([k, v]) => {
    Object.assign(piniaStore, v);
});
 
export default piniaStore

// 使用方式
// const { count } = storeToRefs(piniaStore.usefruitStore())
// const { increment } = piniaStore.usefruitStore()